package com.violet.user.server.user.service.impl;

import com.violet.user.api.user.dto.UserDTO;
import com.violet.user.api.user.service.UserApiService;
import com.violet.user.server.user.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

import javax.annotation.Resource;

/**
 * @Author: wqf
 * @Date: 2023/06/14
 * @Description:
 */
@Slf4j
@DubboService
public class UserApiServiceImpl implements UserApiService {

    @Resource
    private UserService userService;


    /**
     * 方法描述: 根据用户名称查询用户信息
     *
     * @param username 用户名称
     * @return com.voilet.user.server.use.dto.UserDTO
     * @author wqf
     * @date 2023/6/14 9:31
     */
    @Override
    public UserDTO getUserByUserName(String username) {
        return userService.getUserByUserName(username);
    }
}
